<%@page import="java.util.function.Supplier"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.List"%>
<%@page import="com.ldl.entity.Ldl"%>
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
  <head>
    <title></title>
	<jsp:include page="/admin/head.jsp"/>
  </head>
  <body>
	<jsp:include page="/admin/header.jsp"/>
	<jsp:include page="/admin/left-menu.jsp"><jsp:param value="1" name="index"/></jsp:include>
	<jsp:include page="/admin/footer.jsp"/>



    <!--中间-->
    <section>
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item">管理首页</li>
          <li class="breadcrumb-item">系统中心</li>
          <li class="breadcrumb-item">用户管理</li>
          <li class="breadcrumb-item active">查看用户</li>
        </ol>
      </nav>
      <% Ldl ldl = (Ldl) request.getAttribute("ldl"); %>
		
		<div class="card container-md" style ="margin-top : 6rem;">
        <div class="card-body">
          <form name="regForm" action="admin/ldl-seek.let" method="POST">
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">姓名</label>
              <div class="col-sm-9">
                <input required="required" readonly="readonly" name="ldlName" type="text" pattern="^[\u4100-\u9fa5]{2,8}$" placeholder="由2到8个汉字组成"
                  title="由2到8个汉字组成" class="form-control" value="${requestScope.ldl.getLdlName() }">
              </div>
            </div>
            
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">出生日期</label>
              <div class="col-sm-9">
               <input type="text" readonly="readonly" name="ldlBrith"  class="form-control" style="width:auto;" value="${requestScope.ldl.getLdlBirth() }"/>
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">性别</label>
              <div class="col-sm-9">
               <input type="text" readonly="readonly" name="ldlSex"  class="form-control" style="width:auto;" value="${requestScope.ldl.getLdlSex() }"/>
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">年龄</label>
              <div class="col-sm-9">
              <input type="text" readonly="readonly" name="ldlSex"  class="form-control" style="width:auto;" value="${requestScope.ldl.getLdlAge() }"/>
                <!--<select required="required" readonly="readonly" name="ldlAge" class="form-control" style="width: auto;">
                  <option value="">请选择</option>
                  <% for(int i=1;i<=100;i++){
                	 request.setAttribute("i", i);
                     if(i == ldl.getLdlAge()){
                  %>
                       <option selected ="true" value="${requestScope.i }">${requestScope.i }</option>
                  <% }else{%>
                       <option value="${requestScope.i }">${requestScope.i }</option>
                  <%}}%>
                </select>
                -->
              </div>
            </div>


            <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary" type="button" onclick="history.go(-1);"> 返回 </button>
              </div>
            </div>

          </form>
        </div>
      </div>
    </section>
    
  </body>
</html>
<%!
	//private  SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
private ThreadLocal<SimpleDateFormat> format = ThreadLocal.withInitial(new Supplier<SimpleDateFormat>(){
	public SimpleDateFormat get(){
		return new SimpleDateFormat("yyyy-MM-dd");
	}
});

private String format(Date date){
	if(date==null){
		return "-";
	} else {
		return format.get().format(date);
	}
}

private ThreadLocal<SimpleDateFormat> format1 = ThreadLocal.withInitial(new Supplier<SimpleDateFormat>(){
	public SimpleDateFormat get(){
		return new SimpleDateFormat("yyyy-MM-dd HH:mm");
	}
});

private String format1(Date date){
	if(date==null){
		return "-";
	} else {
		return format1.get().format(date);
	}
}

%>
